﻿using BankInvest.InstrumentEditor.Domain.Entities;
using FluentNHibernate.Mapping;

namespace BankInvest.InstrumentEditor.NHibernate.Maps
{
    public class InstrumentMap : ClassMap<Instrument>
    {
        public InstrumentMap()
        {
            Id(_ => _.Id).GeneratedBy.Assigned();
            Map(_ => _.Name);
            Map(_ => _.IsActive);
            References(_ => _.Type);
        }
    }
}